package com.ml.mall.service.credit;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ml.mall.bean.base.ApiRestResult;
import com.ml.mall.bean.page.Page;
import com.ml.mall.bean.page.PageExtend;
import com.ml.mall.bean.req.credit.CreditRecordNewDto;
import com.ml.mall.bean.req.credit.CreditRecordQueryDto;
import com.ml.mall.bean.res.credit.CreditRecordQueryRes;
import com.ml.mall.entity.credit.SysCreditRecord;

import java.math.BigDecimal;

public interface SysCreditRecordService extends IService<SysCreditRecord>{

    /**
     * @description    :创建公司余额变动记录
     * @author         :zxm
     * @date           :2021/5/19
    **/
    ApiRestResult createCreditRecord(CreditRecordNewDto dto);

    /**
     * @description    :分页查询公司余额变动记录
     * @author         :zxm
     * @date           :2021/5/19
    **/
    PageExtend<CreditRecordQueryRes> queryPageCreditRecord(CreditRecordQueryDto dto);

    BigDecimal getCompanyCredit(CreditRecordQueryDto dto);
}
